#ifndef COMMON_H
#define COMMON_H
#include <QString>

#define DEFAULTPORT 8080
#define DEFAULTIP   "127.0.0.1"

#ifdef Q_WS_X11
#define QT_LINUX_X11
#endif

#ifdef Q_WS_WIN
#define QT_WINDOW
#endif

void DecToHexDis(const char *DecSource,char *HexDest, int DestSize);
int  HexToDecDis(const char *HexSource,char *DecDest, int DestSize);
extern const char *StatusMesg[];
enum ErrorNo {UNLINK, SOPEN, EOPEN, ESENDDATA};

#endif // COMMON_H
